<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UserService
 *
 * @author krisada.thiangtham
 */
class UserService {

    //put your code here
    private $dispatcher;

    public function __construct(UserDao $dispatcher) {
        return $this->dispatcher = $dispatcher;
    }

    public function action($action) {
        return $this->dispatcher->dispatch($action);
    }

    public function verifyUserByUsernameAndPassword($userTO) {
        return $this->dispatcher->verifyUserByUsernameAndPassword($userTO);
    }

    public function initiateTimeOut($userVO) {
        return $this->dispatcher->initiateTimeOut($userVO);
    }

    public function updateNewTimeout($username, $permission_id) {
        return $this->dispatcher->updateNewTimeout($username, $permission_id);
    }

    public function checkTimeOut($currentTime) {
        return $this->dispatcher->checkTimeOut($currentTime);
    }

    public function verifyAndGetPassword($newPassword) {
        return $this->dispatcher->verifyAndGetPassword($newPassword);
    }

}
